<script setup lang="ts">
import { getip } from '@/api/oper'
import { useStore } from "vuex"
import { onMounted } from 'vue'
const store = useStore()
onMounted(async ()=>{
  const { ip,id } = await getip()
  console.log(ip,id)
  store.commit('SET_IP',{ip,id})
})


</script>

<template>
  <div class="h-screen w-screen overflow-hidden">
    <router-view></router-view>
  </div>
</template>

<style>
</style>
